<?php

namespace Home\Controller;
use Think\Controller;
class PubController  extends Controller {
    
 public function Classs(){
    $class=M('CClass');
    $classinfo=$class->select();
            return $classinfo;
     
     
 } 
 
 public function Sche(){
     
   $sche=M('CSchedule')  ;
   $scheinfo=$sche->select();
   return $scheinfo;
     
 }
 
 
 public function Stulb(){
     
   $stulb=M('SysDict')  ;
   $stulbs=$stulb->where('DICT_TYPE=10001')->select();
   return $stulbs;
     
 }
 public function Kc(){
     
     $stulb=M('SysDict')  ;
   $stulbs=$stulb->where('DICT_TYPE=10002')->select();
   return $stulbs;   
     
 }
  public function Classlb(){
     
     $stulb=M('SysDict')  ;
   $stulbs=$stulb->where('DICT_TYPE=10003')->select();
   return $stulbs;   
     
 }
 public function Teacher(){
     
     $tealist=M(CTeacher);
     $telist=$tealist->select();
     return $telist;
     
 }
 public function Room(){
	 $room=M('CStudent')->field('room')->select();
	 return $room;
 }
 public function Car(){
	 $car=M('CStudent')->field('car')->select();
	 return $car;
 }
 public function Kecheng(){
     
    $kc=M('CCourse');
    $kclist=$kc->select();
    return $kclist;
     
 }
 public function Diqu(){
     
     $dq=M('CArea');
     $dqlist=$dq->select();
     return $dqlist;
     
 }
    
}

